// page/projects/index.js
Page({
  data:{
    title: '积极的红色'
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  },
  onShareAppMessage: function () {
    return {
      title: this.data.title,
      desc: app.globalData.userInfo.nickName+'分享给你'+this.data.title+'【海风教育】',
      path: '/page/projects/result/A/index?title='+ this.data.title,
      success:function(){
          var app=getApp()
          console.log(app)
          app.aldstat.sendEvent("结果页分享")
      }
    }
  },
  aldClick(e){
    var app=getApp()
    app.aldstat.sendEvent("挑选老师")
  },
  jumpLink(e){
    wx.redirectTo({
        url: '../../index/index',
        success:function(){
          var app=getApp()
          app.aldstat.sendEvent("重新测试")
        }
      })
  }
})